package yqt.com.cnki.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import yqt.com.cnki.bo.DownBo;
import yqt.com.cnki.bo.KnowledgeBo;
import yqt.com.cnki.bo.Nodebo;
import yqt.com.cnki.dao.KnowledgeYqtDao;
import yqt.com.cnki.service.KnowledgeYqtService;

import java.util.List;


@Service
public class KnowledgeYqtServiceImpl implements KnowledgeYqtService {


    @Autowired
    KnowledgeYqtDao knowledageDao;

    @Override
    public List<Nodebo> getNodeByTableName(String nodeCode) {
        return knowledageDao.getNodeByTableName(nodeCode);
    }

    @Override
    public List<KnowledgeBo> complexSearch(KnowledgeBo knowledgeBo) {
        return knowledageDao.complexSearch(knowledgeBo);
    }

    @Override
    public Long findComplexSearchCount(KnowledgeBo knowledgeBo) {
        return knowledageDao.findComplexSearchCount(knowledgeBo);
    }

    @Override
    public KnowledgeBo getBoByConditon(DownBo downBo) {
        return knowledageDao.getBoByConditon(downBo);
    }

    @Override
    public Boolean updateByCondition(KnowledgeBo knowledgeBo) {
        return knowledageDao.updateByCondition(knowledgeBo);
    }

    @Override
    public List<String> getCueWord(String inputWord) {
        return knowledageDao.getCueWord(inputWord);
    }
}
